From 94fa20c392a46b71f9767ed7319f85a922bd3b86 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Thu, 2 Apr 2026 11:36:20 +0800 Subject: [PATCH] ci: Make fuse and libfuse-dev conditional for Debian Testing The libfuse-dev and fuse (FUSE 2) packages have been removed from Debian Testing (forky/sid). Move them out of the unconditional package list and only install them on older Debian/Ubuntu versions that still provide FUSE 2. FUSE 3 support is already handled via the libfuse3-dev argument logic. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Xiaofeng Wang --- ci/gh-install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ci/gh-install.sh b/ci/gh-install.sh index 76afbb67..da9f8c36 100755 --- a/ci/gh-install.sh +++ b/ci/gh-install.sh @@ -80,7 +80,6 @@ case "$ID" in e2fslibs-dev elfutils fsverity - fuse gnupg gobject-introspection gtk-doc-tools @@ -89,7 +88,6 @@ case "$ID" in libavahi-client-dev libavahi-glib-dev libcap-dev - libfuse-dev libgirepository1.0-dev libglib2.0-dev libglib2.0-doc @@ -144,6 +142,14 @@ case "$ID" in ;; esac + # libfuse-dev (FUSE 2) has been removed from Debian Testing. + # Only install it on older versions that still provide it. + case "${VERSION_CODENAME:-}" in + (buster|bullseye|bookworm|focal|jammy|bionic) + PACKAGES+=(fuse libfuse-dev) + ;; + esac + apt-get -y update apt-get -y install "${PACKAGES[@]}" "$@" ;; -- 2.39.5